/* 急速文件App基础样式 */
:root {
  --primary-color: #2196F3;
  --secondary-color: #03A9F4;
  --accent-color: #FF9800;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #9e9e9e;
  --danger-color: #f44336;
  --success-color: #4CAF50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #fff;
  color: var(--text-color);
}

/* 模拟iPhone屏幕 */
.iphone-container {
  width: 375px;
  height: 812px;
  background-color: #fff;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 8px solid #000;
}

/* 顶部状态栏 */
.status-bar {
  height: 44px;
  width: 100%;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
}

.status-bar .left {
  display: flex;
  align-items: center;
}

.status-bar .center {
  display: flex;
  align-items: center;
}

.status-bar .right {
  display: flex;
  align-items: center;
}

/* 应用内容区 */
.app-content {
  height: calc(100% - 44px - 83px); /* 减去状态栏和底部导航的高度 */
  overflow-y: auto;
  position: relative;
}

/* 导航栏 */
.nav-bar {
  height: 50px;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--medium-gray);
}

.nav-bar-title {
  font-size: 18px;
  font-weight: 600;
}

/* 底部标签栏 */
.tab-bar {
  height: 83px;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--medium-gray);
  position: absolute;
  bottom: 0;
  padding-bottom: 20px; /* 为了模拟iPhone的Home Indicator */
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dark-gray);
}

.tab-item.active {
  color: var(--primary-color);
}

.tab-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.tab-label {
  font-size: 10px;
}

/* 常用组件样式 */
.button {
  padding: 12px 16px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.button-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.card {
  background-color: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.list-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--medium-gray);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-icon {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  background-color: var(--light-gray);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: var(--primary-color);
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.list-item-subtitle {
  color: var(--dark-gray);
  font-size: 14px;
}

.progress-bar {
  height: 8px;
  background-color: var(--medium-gray);
  border-radius: 4px;
  width: 100%;
  margin: 8px 0;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
}

/* 特定页面样式 */
.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 16px 10px;
}

.quick-access {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 16px;
}

.quick-access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quick-access-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: var(--light-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.quick-access-label {
  font-size: 12px;
  color: var(--text-color);
}

.storage-bar {
  padding: 0 16px;
}

.storage-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 4px;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}

.file-item {
  display: flex;
  flex-direction: column;
}

.file-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.file-item-info {
  margin-top: 8px;
}

.file-item-title {
  font-weight: 500;
  font-size: 14px;
}

.file-item-count {
  color: var(--dark-gray);
  font-size: 12px;
}

.settings-list {
  padding: 0 16px;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--medium-gray);
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-left {
  display: flex;
  align-items: center;
}

.settings-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--light-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  color: var(--primary-color);
}

.settings-item-title {
  font-weight: 500;
}

.settings-item-right {
  display: flex;
  align-items: center;
  color: var(--dark-gray);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 32px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--medium-gray);
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.user-profile {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
}

.user-info h3 {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 4px;
}

.user-info p {
  color: var(--dark-gray);
  font-size: 14px;
} 